package com.amado.course41Annotation;

/**
 * Created by Administrator on 2018/8/4.
 */
public class Student {
    @S02ValidStringFeild(desc = "姓名",maxLength = 5)
    private String name;
    @S02ValidStringFeild(desc = "手机号",length = 11)
    private String telPhone;
    @S02ValidStringFeild(desc = "年龄",maxValue = 150)
    private Integer age;
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }

    public String getTelPhone() {
        return telPhone;
    }

    public void setTelPhone(String telPhone) {
        this.telPhone = telPhone;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Student(String name, String telPhone, Integer age) {
        this.name = name;
        this.telPhone = telPhone;
        this.age = age;
    }
    /**
     * 查看编译后的代码
     */
	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return super.toString();
	}
    
}
